const express = require('express');
const app = express();

const routes = require('./router');
// 使用路由模块
app.use('/', routes);

// 启动服务器
const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
    console.log(`Server is running on http://localhost:${PORT}`);
});
